set vName to the name of member the member of sprite thisSprite
case thisSprite of
10, 11, 12, 13, 14:
set vSprite to 27
15, 16, 17, 18, 19:
set vSprite to 28
20, 21, 22, 23, 24:
set vSprite to 29
otherwise:
exit
end case
puppetSprite(vSprite, 1)
set the member of sprite vSprite to member (vName && "fill")
set the loc of sprite vSprite to point(320, 240)
updateStage()
getWord(thisSprite)
end
on getWord thisSprite
case thisSprite of
10:
setWord(1, #confident)
11:
setWord(1, #focused)
12:
setWord(1, #steadfast)
13:
setWord(1, #courageous)
14:
setWord(1, #persistent)
15:
setWord(2, #unrelenting)
16:
setWord(2, #determined)
17:
setWord(2, #intelligent)
18:
setWord(2, #tenacious)
19:
setWord(2, #unfaltering)
20:
setWord(3, #ambition)
21:
setWord(3, #aspirations)
22:
setWord(3, #desire)
23:
setWord(3, #dream)
24:
setWord(3, #goal)
end case
end
on setWord vListPos, vWord
setAt(gFillWords, vListPos, vWord)
end
on getSentence
set vNewLine to 1
repeat with vWord in gFillWords
if vWord = #empty then
set vNewLine to 0
exit repeat
end if
end repeat
if vNewLine then
set vTempText to EMPTY
put RETURN & "I am" && string(getAt(gFillWords, 1)) && "and" && string(getAt(gFillWords, 2)) & RETURN & "in the pursuit of my" && string(getAt(gFillWords, 3)) & "." & RETURN after vTempText